import commondef from '@/utils/common'
export default {

    data() {
        return {
            devicePage: {
                page: 1,
                pageSize: commondef.globlePagesize
            },
            deviceList: []
        }
    },
    methods: {
        getDeviceList(id) {
            this.$http({
                url: this.$http.adornUrl('/ecs/ecsquotarel/list'),
                method: 'get',
                params: this.$http.adornParams({
                    quotaId: id,
                    page: this.devicePage.page,
                    limit: this.devicePage.pageSize,
                    customerId: this.$cookie.get("customer_id"),
                    projectid: this.$cookie.get("cuuren_projectId")
                })
            }).then(({ data }) => {
                if (data && data.code === 0) {
                    this.deviceList = data.list;
                }
            })
        }
    }
}